package org.deltaset.samples.mvc.web;

import java.io.Serializable;
import org.deltaset.meta.MetaActionExecutor;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

/**
 *
 * @author dmakariev
 */
@Component
@Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS)
public class ViewState implements Serializable {

    private Object recordValue;
    private MetaActionExecutor executor;

    public Object getRecordValue() {
        return recordValue;
    }

    public void setRecordValue(Object recordValue) {
        this.recordValue = recordValue;
    }

    public void setExecutor(MetaActionExecutor executor) {
       this.executor=executor;
    }

    public MetaActionExecutor getExecutor() {
        return executor;
    }
    
}
